#ifndef CNUTRITION_H
#define CNUTRITION_H

#include <QObject>
#include "cobject.h"

class CNutrition : public CObject
{
    Q_OBJECT
//    Q_PROPERTY(int id READ id WRITE setId NOTIFY idChanged)
    Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
    Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
public:
    explicit CNutrition(QObject *parent = 0);

//    int id();
//    void setId(int id);

    QString name();
    void setName(QString name);

    QString description();
    void setDescription(QString description);

signals:
//    void idChanged();
    void nameChanged();
    void descriptionChanged();

public slots:
private:
//    int m_id;
    QString m_name;
    QString m_description;
};

#endif // CNUTRITION_H
